Page({
  data: {
    list: []
  },
  onLoad () {
    this.getAnnouncementList()
  },
  // 获取公告列表
  async getAnnouncementList () {
    const res = await wx.$http.get('/announcement')
    console.log(res)
    if (res.code !== 10000) return wx.$utils.toast()
    this.setData({
      list: res.data
    })
  }
})
